const { MD5_SECURITY_KEY } = require('../config/security'),
    crypto = require('crypto')

const cryptoPwd = pwd => {
    return crypto.createHash('md5')
                 .update(`password=${pwd}&key=${MD5_SECURITY_KEY}`)
                 .digest('hex')
} 

module.exports = { cryptoPwd }